/**
 * Created by rockyren on 14/11/18.
 */
productApp.factory('productService',function($http){
  var baseProductUrl = 'api/product';
  return {
    get: function(){
      return $http.get(baseProductUrl);
    },
    show: function(id) {
      return $http.get(baseProductUrl + '/' + id);
    }

  }
});